import request from '@/utils/request'

/**
 * 注册
 * @param {username,password} data
 */
export const register = (data) => {
  return request({
    method: 'POST',
    url: '/user/register',
    data
  })
}
/**
 * 登陆
 * @param {username,password} params
 */
export const login = (data) => {
  return request({
    method: 'POST',
    url: '/user/login',
    data
  })
}
